import {http} from "@/interceptor/luch-request/index.js"

// 按班级统计--》班级考勤页面
export const ListStatisticalByClass = (data) => {
	return http.get("api/admin/attendanceRecordTotal/v1/ListStatisticalByClass", {
		data: data
	});
}

// 按人员统计--》考勤记录页面
export const ListStatisticalByUser = (data) => {
	return http.get("api/admin/attendanceRecordTotal/v1/ListStatisticalByUser", {
		data: data
	});
}

// 班级排班列表
export const classGroupList = (data) => {
	return http.get("api/admin/attendanceRecordTotal/v1/classGroupList", {
		data: data
	});
}

// 手动打卡
export const updateRecordBatch = (data) => {
    return http.put("api/admin/attendanceRecordTotal/v1/updateRecordBatch",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 


// 取消签到
export const cancelSignIn = (data) => {
    return http.put("api/admin/attendanceRecordTotal/v1/cancelSignIn",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}

export const signIn = (data) => {
    return http.put("api/admin/leaveApply/v1/signIn",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 

// 按班级统计导出
export const write = (data) => {
	return http.get("api/admin/attendanceRecordTotal/v1/write", {
		data: data
	});
}

// 全校统计
export const ListStatisticalBySchool = (data) => {
	return http.get("api/admin/attendanceRecordTotal/v1/ListStatisticalBySchool", {
		data: data
	});
}

// 全校人员班级统计
export const statistical = (data) => {
	return http.get("api/admin/attendanceRecordTotal/v1/statistical", {
		data: data
	});
}

// 生成数据
export const intoRecord = (data) => {
	return http.get("api/admin/leaveApply/v1/intoRecord", {
		data: data
	});
}
